/* socket.h */

#ifndef __SOCKET_H__
#define __SOCKET_H__ 1

#include <net/if.h>

#define PORT 4545
#define ADDRESS "localhost"
#define BUFF_SIZE 512

int socket_init();
int create_destination(char *destination, int port, struct sockaddr_in *server);
void send_msg(int sock_fd, struct sockaddr_in server, char *msg);
int recv_msg(int sock_fd, char *buffer);

#endif /* __SOCKET_H__ */
